﻿//vs
//#version 150

in vec3 inPosition;
in vec2 inUV;

uniform mat4 mvpMat;

out vec2 passUV;

void main() {
    gl_Position = mvpMat * vec4(inPosition, 1.0);
    passUV = inUV;
}

//fs
//#version 150

in vec2 passUV;

uniform sampler2D tex;

out vec4 outColor;

void main() {
    outColor = texture(tex, passUV) + vec4(0.5);
}
